package com.clover.mapper;

import com.clover.model.DemoDO;
import org.apache.ibatis.annotations.Param;

/**
 * Created by sanyecao on 2017/10/19.
 */
public interface DemoMapper {
    /**
     * 插入
     * @param demo
     * @return
     */
    int insert(@Param("demo") DemoDO demo);

    /**
     * 查询
     * @param demo
     * @return
     */
    DemoDO select(@Param("demo") DemoDO demo );

    /**
     * 更新
     * @param age
     * @param id
     * @return
     */
    int updateDemoById(@Param("age") int age, @Param("id") long id);

}
